﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tunnel
{
    public static class Global
    {
        private static string user = "研发测试";

        private static string userID = "admin";

        private static string role = "管理员";

        

        private static Dictionary<string, bool> plcStatus = new Dictionary<string, bool>();      
        
        

        public static string User
        {
            get
            {
                return user;
            }

            set
            {
                user = value;
            }
        }

        public static string UserID
        {
            get
            {
                return userID;
            }

            set
            {
                userID = value;
            }
        }

        public static string Role
        {
            get
            {
                return role;
            }

            set
            {
                role = value;
            }
        }
        

        public static Dictionary<string, bool> PlcStatus
        {
            get
            {
                return plcStatus;
            }

            set
            {
                plcStatus = value;
            }
        }
    }

    /// <summary>
    /// 下发指令的类型
    /// </summary>
    public enum CommandType
    {
        交通信号灯红,
        交通信号灯黄,
        交通信号灯绿,
        交通信号灯左,

        风机正转,
        风机反转,
        风机停止,

        照明开,
        照明关,

        情报板指令,

        车道指示标志正通反禁,
        车道指示标志正禁反通,
        车道指示标志正禁反禁,

        手报恢复,
        感温光纤恢复,
        烟感器恢复
    }

    
}
